| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkMemory::MemorySpaceAllocator< T > Class Template Referenceabstract

Defines the interface for a memory space allocator, to be used within the pagers. More...

Inheritance diagram for nkMemory::MemorySpaceAllocator< T >:

## Public Member Functions
virtual | ~MemorySpaceAllocator ()=default
virtual UniquePtr< T > | allocate (unsigned long long size)=0

## Detailed Description

### template<typename T>
class nkMemory::MemorySpaceAllocator< T >

Defines the interface for a memory space allocator, to be used within the pagers.

## Constructor & Destructor Documentation

## ◆ ~MemorySpaceAllocator()

template<typename T >

virtual nkMemory::MemorySpaceAllocator< T >::~MemorySpaceAllocator | ( |  | ) |
| virtual default

Destructor.

## Member Function Documentation

## ◆ allocate()

template<typename T >

virtual UniquePtr<T> nkMemory::MemorySpaceAllocator< T >::allocate | ( | unsigned long long | size | ) |
| pure virtual

Allocates a memory space of given size.

Parameters

  size | The size of the memory space that should be allocated, in number of elements.

Implemented in nkMemory::DefaultMemorySpaceAllocator< T >.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsMemory/Pagers/MemorySpaces/MemorySpaceAllocator.h